package log

import "github.com/sirupsen/logrus"

type Record func(level uint8, content string)

func record(level byte, content string) {
	if content == "" {
		return
	}
	switch level {
	case 0:
		logrus.Infoln(content)
	case 1:
		logrus.Warnln(content)
	case 2:
		logrus.Error(content)
	}
}

func NewLog() Record {
	return record
}
